package com.clw.repository;

import com.clw.dataobject.SupplierInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2018-03-07.
 */
public interface SupplierInfoRepository extends JpaRepository<SupplierInfo,Integer> {

    Page<SupplierInfo> findAll(Specification<SupplierInfo> spec, Pageable pageable);

    Long count(Specification<SupplierInfo> spec);

    List<SupplierInfo> findAllByStatus(Integer status);
}
